package test.utils;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : example
 * @ Author: XuLeHuang
 * @ Date: 2022/10/2 22:26
 * @ Description:
 */
public class IsGetterOrSetter {

    public static boolean isGetter(String methodName) {
        return methodName.startsWith("get") || methodName.startsWith("is");
    }

    public static boolean isSetter(String methodName) {
        return methodName.startsWith("set") || methodName.startsWith("is");
    }
}
